package sctu.edu.java.year2016.team01.renxinpeng.day20160605.chapter11_1;

import java.util.Scanner;
/**
 * Created by Zero on 2016/6/5.
 * 主类，创建Sytudent对象，让改对象调用speak()方法。
 */
public class Client {

    public static void main(String[] args) {


        Scanner scan=new Scanner(System.in);
        Student student=new Student();
        System.out.println("请输入一个数字：");
        int m=scan.nextInt();



        try{


            student.speak(m);


        }catch (MyException number){


            number.printStackTrace();
        }
    }
}
